<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>localStorage</title>
</head>
<body>
    <!-- 
    localStorage.setItem(key,value)
    let value = localStorage.getItem(key)
    localStorage.removeItem(key)
    localStorage.length
    localStorage.clear()
     -->
    <script>
        localStorage.setItem("a","a100")
        localStorage.setItem("b","b200")

        console.log(localStorage.length);//2
        console.log(localStorage.getItem("a"));
        console.log(localStorage.getItem("b"));

        localStorage.removeItem("a")
        console.log(localStorage.getItem("a"));
        console.log(localStorage.getItem("b"));

        localStorage.clear()
        console.log(localStorage.getItem("a"));
        console.log(localStorage.getItem("b"));


    </script>
</body>
</html>